
% def_dir&check_input_files
% Christopher J. Whalen
% University of Illinois
% 06/30/04 - First Created
% 07/06/05 - Last Modified

% Purpose - to define all the necessary directories and check that all
%           necessary input files are present

function [dir,file] = mkdirs(data_path,prefix,exp,S,date,analysis_path)

% Defining Directories 
dir.tai=[data_path exp '\reg\']; 
dir.elp=[data_path exp '\reg\'];
% dir.hsp=[data_path exp '\reg\']; 
dir.mtg=[data_path exp '\reg\'];
dir.tol=[data_path exp '\reg\'];
dir.src=[data_path exp '\opt-crd\'];
dir.det=[data_path exp '\opt-crd\'];
dir.ref=[analysis_path 'align2\'];
dir.test=[analysis_path 'align2\'];
dir.S = [data_path exp '\mri\'];
dir.brk = [data_path exp '\mri\'];

% Defining Files
% file.hsp=[dir.hsp exp S suffix '.hsp'];
file.elp=[dir.elp prefix S '.elp'];
file.tai=[dir.tai S 'ac_' date '.tai'];
file.src=[dir.src exp '.src'];
file.det=[dir.det exp '.det'];
file.tol=[dir.tol prefix S '.tol'];
file.brik=      [dir.brk 'S' S '_' date '+acpc.BRIK'];
file.tlrc=      [dir.brk 'S' S '_' date '_coreg+tlrc'];
file.brik_out=  [dir.brk 'S' S '_' date '_' exp];
file.scalp=     [dir.brk 'S' S '_' date '_scalp.mat'];
file.scalp_zip= [dir.brk 'S' S '_' date '_scalp.zip'];
file.ref_banana = [analysis_path 'ref_banana.mat'];
file.ref_banana_fuzzy = [analysis_path 'ref_banana_fuzzy.mat'];
file.ref_banana_fuzzy_hd = [analysis_path 'ref_banana_fuzzy_hd.mat'];




